package cn.tedu.project.oa.announcement.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class AnnouncementVO {
    @ApiModelProperty(value = "公告编号")
    private Long id;
    @ApiModelProperty(value = "发布者员工编号")
    private Long userId;
    @ApiModelProperty(value = "部门编号")
    private Long departmentId;
    @ApiModelProperty(value = "上级编号")
    private Long parentId;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "配图路径")
    private String imgUrl;
    @ApiModelProperty(value = "文章内容")
    private String content;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "可见范围")
    private Integer visible;
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;


}
